import { request } from '@/framework/requests'
import { buildGetApi, buildPostApi } from '@/framework/apis'

export const getStaff = (name = [] as Array<string>, active = true) =>
  request(buildPostApi('/account/search'), { active }, name, false, false) as Promise<any>

export const getUserGroupAreaTreeByGroupIdList = (groupIdList: Array<string>) =>
  request(buildGetApi('group/user/bind/list/search'), { groupIdList }, {}, false, true) as Promise<any>
